using System;
using System.Collections.Generic;
public class MissonManager : BaseManager
{
	public List<Misson> missonList = new List<Misson>();
	private Misson curSelectMisson;
	public void OpenMisson(uint id){
		foreach(Misson misson in missonList){
			if(misson.id == id){
				misson.isOpen = true;
			}
		}
	}
	public void SelectMission(Misson misson){
		curSelectMisson = misson;
	}
	public Misson GetCurSelectMisson(){
		return curSelectMisson;
	}
	public override void Init ()
	{
		base.Init ();
		missonList = MissonPool.GetAllMisson();
		OpenMisson(1);
	}
	public List<Misson> GetMissonList(){
		return missonList;
	}
}


